NetworkX The function generates a random graph with a given number of nodes and average degree. If the average degree is less than 2, it returns an error message. If the average degree is 2, it generates a Petersen graph; if the average degree is 3, it generates a 2D cube graph; otherwise, it generates an ErdÅ‘s-Rényi random graph. Custom function 2024-12-16 12:18:02 43 views
Plotly Python This code defines a function named random_bar_chart that accepts a dictionary as input, with the keys and values of the dictionary serving as the x-axis and y-axis data for the chart. The function uses the GraphObjects module from Plotly to create a bar chart and randomly generates data. Then, it updates the chart's layout and displays the chart. The type of code 2024-12-16 12:17:55 31 views
Plotly Python This function uses the Plotly's GraphObjects module to create a scatter plot and displays it in the browser. Function 2024-12-16 12:17:45 25 views
cryptography (for This function generates a password hash using the PBKDF2HMAC algorithm, supports custom salts, and is used for password storage and verification. Function 2024-12-16 12:17:35 16 views
Python string This function generates a random hexadecimal color code, which is used in web design or graphical user interfaces. Python Function 2024-12-16 12:17:29 15 views
cryptography PBKDF2HMAC This code defines several encryption-related functions, including generating RSA key pairs, encrypting and decrypting messages, hashing passwords, and verifying passwords. The type of code 2024-12-16 12:17:15 13 views
Plotly (plotly.graph_objects) This function creates a scatter plot using Plotly, where the x-axis and y-axis data are passed as arguments, and the y-axis data is randomly generated. Each point in the chart is accompanied by a text label. Plotly chart 2024-12-16 12:17:02 15 views
Cartopy Matplotlib This function generates a world map using the Cartopy and Matplotlib libraries. It randomly selects the map projection type and adds geographic features. Map drawing 2024-12-16 12:16:54 15 views
Igraph This function generates a random graph with a specified number of nodes and edges using the Igraph library, calculates its degree distribution, and then prints it. Function 2024-12-16 12:16:53 13 views
Python Plotly This function creates a bar chart using the Plotly library's GraphObjects module. It takes data, x-axis title, and y-axis title as parameters and displays a bar chart. Python Function 2024-12-16 12:16:51 15 views